package com.southwind.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

//@Getter
//@AllArgsConstructor
public enum ResponseEnum {

    PRODUCT_NULL(300,"商品不存在"),
    PRODUCT_STOCK_ERROR(301,"商品库存不足"),
    MOBILE_ERROR(302,"手机号不存在"),
    PASSWORD_ERROR(303,"密码错误"),
    LOGIN_ERROR(304,"登录失败"),
    SMS_SEND_ERROR(305,"短信发送失败"),
    ADD_PRODUCT_ERROR(306,"添加商品失败"),
    DELETE_PRODUCT_ERROR(307,"删除商品失败"),
    UPDATE_PRODUCT_STATUS_ERROR(308,"修改商品状态失败"),
    UPDATE_PRODUCT_ERROR(309,"修改商品失败"),
    USERNAME_ERROR(310,"用户名不存在");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
